#ifndef DIALOG_SQL_H
#define DIALOG_SQL_H

#include <QDialog>
#include "fun.h"
namespace Ui {
class Dialog_sql;
}

class Dialog_sql : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog_sql(test* da,QWidget *parent = nullptr);
    ~Dialog_sql();
    static int show(test* da,QWidget *parent = nullptr);

    QPushButton *t_btn_yes;
    QPushButton *t_btn_no;
    QPushButton *t_btn_ture;

    enum EnmButton{
            ENM_yes_BTN = 1,
            ENM_no_BTN=2,
            ENM_true_BTN=0,
        };

private slots:
    void on_load_clicked();

    void on_btn_sql_clicked();

    void on_del_clicked();

private:
    Ui::Dialog_sql *ui;
    test* buffer;
};

#endif // DIALOG_SQL_H
